﻿
using AdventureWorks.DataAccess.Task;
using AdventureWorks.DataAccess.Specifications;
using AdventureWorks.Domain;
namespace AdventureWorks.Services
{
    public class SpecialOfferService : ISpecialOfferService
    {

        public PagedResult<SpecialOffer> GetSpecialOffers(string category, string type)
        {
            using (var task = new SpecialOfferTask())
            {
                var c = new SpecialOfferSpecification { Category = category, Type = type};
                return task.GetSpecialOffers(c);
            }
        }
    }
}
